<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>骰子布局.html</title>
    <style>
        [class$="face"] {
            margin: 16px;
            padding: 4px;
            background-color: #e7e7e7;
            width: 104px;
            height: 104px;
            object-fit: contain;

            box-shadow: 
                inset 0 5px white,
                inset 0 -5px #bbbbbb,
                inset 5px 0 #d7d7d7,
                inset -5px 0 #d7d7d7;
            border-radius: 10%;
            display: flex;
        }
        .dot {
            margin: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #333333;
            box-shadow: inset 0 3px #111111, inset 0 -3px #555555;
        }

        .first-face {
            display: flex;
            flex-flow: row nowrap;
            justify-content: center;
            align-items: center;
        }

        .second-face {
            justify-content: space-between;
        }
        .second-face .dot:nth-child(2) {
            align-self: flex-end;
        }

        .third-face {
            justify-content: space-between;
        }
        .third-face .dot:nth-child(2) {
            align-self: center;
        }
        .third-face .dot:nth-child(3) {
            align-self: flex-end;
        }

        .fourth-face, .sixth-face {
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .fourth-face .column, .sixth-face .column{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .fifth-face {
            justify-content: space-between;
        }

        .fifth-face .column:nth-child(2n-1) {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center
        }

        .fifth-face .column:nth-child(2) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

    </style>
</head>
<body>
    <div class="first-face">
        <div class="dot"></div>
    </div>
    <div class="second-face">
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
    <div class="third-face">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
    <div class="fourth-face">
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>
    <div class="fifth-face">
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="column">
            <div class="dot"></div>
        </div>
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>
    <div class="sixth-face">
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="column">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>
</body>
</html>